" 斐波那契函数示例
echo "Fibonacci Function Example"

" 定义斐波那契函数
function Fibonacci(n)
    if n <= 1
        return n
    endif
    
    let a = 0
    let b = 1
    let i = 2
    
    while i <= n
        let temp = a + b
        let a = b
        let b = temp
        let i = i + 1
    endwhile
    
    return b
endfunction

" 测试斐波那契函数
echo "Fibonacci(0) =" Fibonacci(0)
echo "Fibonacci(1) =" Fibonacci(1)
echo "Fibonacci(5) =" Fibonacci(5)
echo "Fibonacci(10) =" Fibonacci(10)
echo "Fibonacci(40) =" Fibonacci(40)